package com.bjc.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @program: emq-demo
 * @description: 规则引擎
 * @author: bjc
 * @create: 2021-08-29 21:37
 */
@RestController
@RequestMapping("/resource")
public class RuleController {

    @PostMapping("/process")
    public void process(@RequestBody Map<String,Object> params){
        System.out.println("规则引擎-----------------");
        params.entrySet().stream().forEach(x->{
            System.out.println(x.getKey() + ":" + x.getValue());
        });
    }
}
